<?php
require_once("../php/connection.php");

$res = mysql_query("SELECT * FROM site_user_login ORDER BY `time` DESC ");
echo 'Recenlty logged in<br><br>';

while($row = mysql_fetch_array($res))
{
	
	$fbid = $row['fbid'];
	$time = $row['time'];
	date_default_timezone_set('Asia/Calcutta');
	
	echo '<a href="http://facebook.com/'.$row['fbid'].'" target="_blank"><img src="http://graph.facebook.com/'.$row['fbid'].'/picture" /></a>';	
	echo date("Y-m-d H:i:s",$time).'<br><br>';
	
}

?>